package cn.stylefeng.guns.modular.cb.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.cb.entity.CbCustomerStudents;
import cn.stylefeng.guns.modular.cb.model.params.CbCustomerStudentsParam;
import cn.stylefeng.guns.modular.cb.model.result.CbCustomerStudentsResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wj
 * @since 2021-01-07
 */
public interface CbCustomerStudentsService extends IService<CbCustomerStudents> {

    /**
     * 新增
     *
     * @author wj
     * @Date 2021-01-07
     */
    void add(CbCustomerStudentsParam param);

    /**
     * 删除
     *
     * @author wj
     * @Date 2021-01-07
     */
    void delete(CbCustomerStudentsParam param);

    /**
     * 更新
     *
     * @author wj
     * @Date 2021-01-07
     */
    void update(CbCustomerStudentsParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author wj
     * @Date 2021-01-07
     */
    CbCustomerStudentsResult findBySpec(CbCustomerStudentsParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author wj
     * @Date 2021-01-07
     */
    List<CbCustomerStudentsResult> findListBySpec(CbCustomerStudentsParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author wj
     * @Date 2021-01-07
     */
     LayuiPageInfo findPageBySpec(CbCustomerStudentsParam param);

    /**
     * 获取学生信息
     * @param param
     * @return
     */
    CbCustomerStudentsResult getStudent(CbCustomerStudentsParam param);

    /**
     * 职员的校友
     * @param paramCondition
     * @return
     */
    LayuiPageInfo alumniByStudentList(CbCustomerStudentsParam paramCondition);

    /**
     * 学生数量统计
     * @return
     */
    List<Map<String,Object>> queryDateCount(String startDate, String[] countArr);


    /**
     * 学生列表
     * @param paramCondition
     * @return
     */
    LayuiPageInfo studentList(CbCustomerStudentsParam paramCondition);
}
